<div class="bjui-pageHeader">
	<div class="pull-right">
		<!-- <button class="btn-default" data-icon="plus" title="增加快递" data-toggle="tooltip" data-placement="left" onclick="createDialog('{:U("Block/exp")}', '新增快递', 'exp');" ></button> -->
		<div class="btn-group">
			<button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" ><span class="caret"></span></button>
			<ul class="dropdown-menu">
				<li><a href="{:U('Block/del_exp')}" data-toggle="doajaxchecked" data-callback="callbackRefres" data-confirm-msg="要全部删除所选中的快递吗??" data-idname="id" data-group="ids">全部删除</a></li>
			</ul>
		</div>
		<button class="btn-default" onclick="$.CurrentNavtab.navtab('refresh')" title="刷新本页" data-toggle="tooltip" data-placement="left" data-icon="refresh"></button>
	</div>
	 <form id="pagerForm" data-toggle="ajaxsearch" data-loadingmask="true" action="{:U('exp')}" method="post">
		<input type="hidden" name="pageSize" value="{:I('param.pageSize')}" />
        <input type="hidden" name="pageCurrent" value="{:I('param.pageCurrent')}" />
        <input type="hidden" name="orderField" value="{:I('param.orderField')}" />
        <input type="hidden" name="orderDirection" value="{:I('param.orderDirection')}" />
        <div class="bjui-searchBar">
        	<label>状态:</label>
        	<select name="status" data-toggle="selectpicker">
        		<option value="">全部</option>
        		<option value="0" <if condition="$_REQUEST['status'] eq '0'">selected="selected"</if>>正常</option>
        		<option value="1" <if condition="$_REQUEST['status'] eq '1'">selected="selected"</if>>已禁用</option>
        	</select>
        	<label>名称:</label>
        	<input type="text" name="name" class="w200" value="{:I('name')}"/>
        	<button type="submit" class="btn-default" data-icon="search">查询</button>
	        <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
	<table class="table table-bordered table-hover table-striped table-top" data-selected-multi="false">
		<thead>
			<tr>
				<th width="26"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
				<th>名称</th>
				<th>公司代码</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
		<volist name="list" id="vo">
			 <tr>
				<td><input type="checkbox" value="{$vo.id}" class="checkboxCtrl" name="ids" data-toggle="icheck"></td>
			 	<td>{$vo.name}</td>
			 	<td>{$vo.code}</td>
			 	<if condition="$vo.status eq '0'">
			 	<td><a href="{:U('Forms/update_exp',array('id'=>$vo['id']))}" data-toggle="doajax" data-type="get" data-confirm-msg="确定要禁用{$vo.name}?" >开启</a></td>
			 	<else/>
			 	<td><a href="{:U('Forms/update_exp',array('id'=>$vo['id']))}" data-toggle="doajax" data-type="get" data-confirm-msg="确定要启用用{$vo.name}?" >禁用</a></td>
			 	</if>
			 	<td>
			 		<button type="button" class="btn-warning btn-xs" onclick="createDialog('{:U("Forms/exp", array("id"=>$vo[id]))}','修改{$vo.name}', 'exp')">改</button>
			 		<button type="button" class="btn-danger btn-xs" data-toggle="doajax" data-confirm-msg="确定要删除{$vo.name}?" data-type="get" data-url="{:U('Forms/del_exp',array('id'=>$vo['id']))}">删</button>
			 	</td>
			 </tr>
		</volist>
		</tbody>
	</table>
</div>
<include file="Common/footer" ftype="page" />